package com.xinghanlaser.applet.base.auth.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinghanlaser.applet.base.auth.entity.RoleDO;
import com.xinghanlaser.applet.base.auth.query.RoleQuery;
import com.xinghanlaser.applet.base.auth.vo.RoleDataVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;


/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author dym
 * @since 2019-11-19
 */
@Mapper
public interface RoleMapper extends BaseMapper<RoleDO> {
    Set<RoleDO> selectRoleByUserId(Long userId);

    List<RoleDataVO> pageByCondition(@Param("query")RoleQuery query);

    Set<Long> selectRoleIdByUserName(String userName);
}
